# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=tilda
pkgver=2.0.0
pkgrel=0
pkgdesc="A Gtk based drop down terminal for Linux and Unix"
url="https://github.com/lanoxx/tilda"
arch="all"
license="GPL-2.0-or-later"
depends="procps"
makedepends="automake autoconf libtool
	confuse-dev vte3-dev libx11-dev libxml2-utils
	pcre2-dev"
subpackages="$pkgname-lang $pkgname-doc"
source="https://github.com/lanoxx/tilda/archive/tilda-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver

prepare() {
	default_prepare
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--disable-maintainer-mode \
		--enable-lto \
		--enable-vte-2.91 \
		--disable-rpath
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e68c04e1c8dd862ab850a06036d67544a910ccd3143eb9d33171d551f34ef47445d6b387bf087ada6f3deddcf115ba928f3bb0497b8a3d2305b202b3b84fd476  tilda-2.0.0.tar.gz
"
